package com.mqtt.ctwingmqtt.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "设备数据传输对象")
public class DeviceDto {
    @ApiModelProperty(value = "主键ID", example = "1")
    private Long id;

    @ApiModelProperty(value = "设备编号", example = "D12345")
    private String deviceCode;

    @ApiModelProperty(value = "设备地址", example = "DEV12345")
    private String deviceAddress;

    @ApiModelProperty(value = "设备名称", example = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "设备类型", example = "1")
    private String deviceType;

    @ApiModelProperty(value = "关联DTU表的ID（逻辑外键）", example = "1")
    private Long dtuId;

    @ApiModelProperty(value = "dtu名称", example = "123456")
    private String dtuName;

    @ApiModelProperty(value = "产品id", example = "1")
    private String productId;
}
